package cn.git.agent.interceptor;

import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

/**
 * @description: 获取静态方法拦截点
 * @program: bank-credit-sy
 * @author: lixuchun
 * @create: 2024-12-24
 */
public interface StaticMethodInterceptPoint {

    /**
     * 获取需要拦截的方法，作为method()方法的参数
     *
     * @return
     */
    ElementMatcher<MethodDescription> getStaticMethodsMatcher();

    /**
     * 获取需要拦截的方法的拦截器,次拦截器必须实现 StaticMethodAroundInterceptor 接口，实现环绕通知
     *
     * @return
     */
    String getMethodInterceptor();

}
